package com.furnitur.modules.admin.dto.user;

import lombok.Data;

import javax.validation.constraints.Min;
import javax.validation.constraints.Pattern;

@Data

public class UserQueryDTO {

    @Min(value = 1, message = "页码必须大于0")
    private Integer pageNum = 1;


    @Min(value = 1, message = "每页数量必须大于0")
    private Integer pageSize = 10;


    @Pattern(regexp = "^[\\u4E00-\\u9FA5A-Za-z0-9_-]{0,50}$", message = "关键词格式不正确")
    private String keyword;

    private Integer status;

    private Long roleId;
}
